package org.example.design.iterator.lang;

/**
 * @Classname Collection
 * @Description 集合功能接口定义
 * @Date 2020/11/10 10:00 上午
 * @Created by xiangjd
 */
public interface Collection<E, L> extends Iterable<E> {

    boolean add(E e);

    boolean remove(E e);

    boolean addLink(String key, L l);

    boolean removeLink(String key);

    @Override
    Iterator<E> iterator();

}
